package org.lex.ftp.ui.actions;

import java.awt.event.ActionEvent;
import javax.swing.JOptionPane;

import org.lex.ftp.FTP;

public class AboutAction extends FTPAction {
	public AboutAction(FTP app) {
		super(app);
		this.setName("About...");
	}

	public void actionPerformed(ActionEvent e) {
		JOptionPane.showMessageDialog(app.getRootWindow(), getAboutMessage(), "About", JOptionPane.INFORMATION_MESSAGE);
	}

	private String getAboutMessage() {
		return "<html>" + "<body><h2 color = blue>An FTP Client " + "implement in java<br><h5 color = gray align = "
				+ "right> coded by svchost</body></html>";
	}
}
